//面向对象编程
//购物车对象
module.exports = function Cart() {
	//定义变量
	var cart_Id; //主键
	var customer_Id; //买家id
	var product_Id;  //产品id
	var num;   //购买数量

	this.setId = function(x) {
		cart_Id = x;
	}

	this.getId = function() {
		return cart_Id;
	}

	this.setcustomer_Id = function(x) {
		customer_Id = x;
	}

	this.getcustomer_Id = function() {
		return customer_Id;
	}

	this.setproduct_Id = function(x) {
		product_Id = x;
	}

	this.getproduct_Id = function() {
		return product_Id;
	}

	this.setnum = function(x) {
		num = x;
	}

	this.getnum = function() {
		return num;
	}
}